



cap noisily cd "/Users/aspearot/Dropbox/MaLT 2017/Draft/submission_draft/ReStat/resubmission 2/replication package/malt/"

insheet using "Results/IVDataset_Replication_Update.csv", clear


gen ln_price = log(av_urea_rprice_usd_w1)
gen ln_price_lag = log(av_urea_wprice_15_usd_w1)
gen ln_exper = log(exper)
gen ln_deltas = log(deltas)

gen ln_av_pop_market = log(av_pop_market)

egen district = group(av_district)


xtreg ln_deltas ln_price ln_exper, robust fe i(district)
outreg2 ln_price using "/Users/aspearot/Dropbox/MaLT 2017/Data/MaLT Project Data/Final Analysis Datasets/IVResults_Replication_Update.xls", excel label  bdec(3) sdec(3) rdec(2) nocons noni replace 

xtreg ln_deltas ln_price ln_exper if ln_price_lag!=., robust fe i(district)
outreg2 ln_price using "/Users/aspearot/Dropbox/MaLT 2017/Data/MaLT Project Data/Final Analysis Datasets/IVResults_Replication_Update.xls", excel label  bdec(3) sdec(3) rdec(2) nocons noni

xtivreg ln_deltas ln_exper (ln_price = ln_price_lag ln_exper), first fe i(district)
outreg2 ln_price using "/Users/aspearot/Dropbox/MaLT 2017/Data/MaLT Project Data/Final Analysis Datasets/IVResults_Replication_Update.xls", excel label  bdec(3) sdec(3) rdec(2) nocons noni













